import Home from '@/views/Home.vue'
// import Login from '@/views/Login.vue'
import NotFound from '@/views/NotFound/index.vue'

export default [
    // {
    //     path: '/login',
    //     name: 'Login',
    //     component: Login,
    //     meta: {
    //         title: '登录',
    //         requiresAuth: false // 登录页面不需要认证
    //     }
    // },
    {
        path: '/',
        redirect: '/home' // 默认重定向到首页
    },
    {
        path: '/home',
        name: 'Home',
        component: Home,
        meta: {
            title: '地图系统',
            requiresAuth: false // true是需要认证，false是不需要认证
        }
    },
    {
        path: "/:pathMatch(.*)*",
        name: 'NotFound',
        component: NotFound,
        meta: {
            title: '页面未找到',
            requiresAuth: false
        }
    }
]